<template>
	<view>
		<up-navbar placeholder :titleStyle="{color:'#333'}" :title="dataInfo.key_name" :autoBack="true"></up-navbar>
		<view class="pad-26">
			<up-parse :content="dataInfo.key_value"></up-parse>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';

	import {
		config
	} from '../../api/index.js'

	import {
		onLoad
	} from '@dcloudio/uni-app'

	let dataInfo = ref({});
	onLoad((e) => {
		// 获取数据
		config().then(res => {
			if (e.type == 'service') {
				dataInfo.value = res.data[2]
			} else if (e.type == 'user') {
				dataInfo.value = res.data[1]
			}
		})
	})
</script>

<style>

</style>